package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;

@TableName("commodity")
@Data
public class Commodity {
    @MppMultiId
    private Integer comId;
    private String comName;
    private String kind;
    private double weight;
    private String firmName;
    private String expiration;
    private String note;
    @MppMultiId
    private Integer tenantId;

    public Commodity(Integer comId, String comName, String kind, double weight, String firmName, String expiration, String note, Integer tenantId) {
        this.comId = comId;
        this.comName = comName;
        this.kind = kind;
        this.weight = weight;
        this.firmName = firmName;
        this.expiration = expiration;
        this.note = note;
        this.tenantId = tenantId;
    }

    public Commodity() {

    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getFirmName() {
        return firmName;
    }

    public void setFirmName(String firmName) {
        this.firmName = firmName;
    }

    public String getExpiration() {
        return expiration;
    }

    public void setExpiration(String expiration) {
        this.expiration = expiration;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
